package com.caijin.web.controller.system;


import com.caijin.common.core.domain.Result;
import com.caijin.system.service.IStudentClazzService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学生班级关联表 前端控制器
 * </p>
 *
 * @author Peas
 * @since 2021-01-18
 */
@RestController
@RequestMapping("/system/studentClazz")
public class StudentClazzController {

    @Autowired
    private IStudentClazzService studentClazzService;

    /**
     * 删除班级学生
     */
    @ApiOperation(value = "删除班级学生")
    @RequestMapping(path = "/delete", method = RequestMethod.GET)
    public Result deleteClazz(@RequestParam("sno") Long sno,
                              @RequestParam("clazzId")Long clazzId) {
        return studentClazzService.deleteStudent(sno,clazzId);
    }
}

